package net.hn.hnms.biz.api.safety.trinity.fegin;

import net.hn.hnms.biz.api.feign.base.FeignClientsConfigurationCustom;
import net.hn.hnms.biz.api.feign.model.DataStateVo;
import net.hn.hnms.sys.common.core.constant.ServiceNameConstants;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "RemoteTrinityService", value = ServiceNameConstants.CMIM_BIZ_TRINITY
        ,fallback = RemoteTrinityServiceFallback.class,configuration = FeignClientsConfigurationCustom.class
)
@Component
public interface RemoteTrinityService {
    @GetMapping("manage/hiddenDangerRecord/maxTime")
    R<List<DataStateVo>> getHiddenDangerMaxTime(@RequestParam("mineCode") String mineCode, @RequestParam("companyCode")  String companyCode);
    @GetMapping("manage/riskRecord/maxTime")
    R<List<DataStateVo>> getRiskMaxTime(@RequestParam("mineCode") String mineCode, @RequestParam("companyCode")  String companyCode);
}
